package com.leiyuee.designpattern.adapter.controller;


import com.leiyuee.designpattern.adapter.params.NationParam;
import com.leiyuee.designpattern.adapter.service.AdapterService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author : Yu_Lei
 * @create 2024/5/8
 */

@RestController
public class AdapterController {
    @Resource
    private AdapterService adapterService;
    @PostMapping("/outputVoltage")
    public String outputVoltage(@RequestBody NationParam param) {
        return adapterService.outputVoltage(param);
    }


}
